package com.app.qbake.module.square.di;

import com.app.qbake.module.square.api.SquareApi;
import com.app.qbake.module.square.api.SquareApiProxy;

import dagger.Module;
import dagger.Provides;
import retrofit2.Retrofit;

/**
 * Created by wind on 2018/9/5.
 */
@Module
public abstract class SquareModule {


    @Provides
    public static SquareApiProxy provideApiProxy(Retrofit retrofit){
        SquareApi api=retrofit.create(SquareApi.class);
        SquareApiProxy proxy=new SquareApiProxy(api);
        return proxy;
    }


}
